#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main() {

	char a[85];
	gets(a);
	int len = strlen(a), flag = 1;
	for (int i = 0; i < strlen(a) / 2; i++) {
		if (a[i] != a[len - i - 1]) {
			flag = 0;
			break;
		}
	}
	printf("%s\n", a);
	if (flag) printf("Yes");
	else printf("No");
	return 0;
}